//
//  YJDoctorsIfonModel.m
//  QuickCure1
//
//  Created by 陶永久 on 2016/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "YJDoctorsIfonModel.h"
#import "YJDoctorsIfonModel.h"
#import "NetWorkManager.h"
@interface YJDoctorsIfonModel()



@end

@implementation YJDoctorsIfonModel

- (NSString *)description
{
    return [self yy_modelDescription];
}

#pragma mark -
#pragma mark -  所有医生信息列表
+ (void)getDoctorsIfonModellistComplete:(void(^)(NSArray<YJDoctorsIfonModel *> *modelList))completeBlock
{
    NSDictionary *paramDic = @{@"login_token":@"985c96ce43bb5ef69de3e1ad8afaa83f",@"ci1_id":@(1),@"ci2_id":@(3),@"ci3_id":@(3),@"diagnosis_type":@(0),@"is_confirmed":@(1),@"user_id":@(1000089),@"complications":[NSArray new],@"has_diagnosis":@(2)};

    [[NetWorkManager sharedManager] loadDoctorsIfonWithParmas:paramDic completeBlock:^(NSArray<YJDoctorsIfonModel *> *modelList, NSError *error) {
        
        completeBlock(modelList);
        
    } errorBlock:^(NSString *error) {
        

        
    }];
}

#pragma mark -
#pragma mark - 被关注的医生信息列表
+ (void)getAttentionDoctorsIfonModellistWithUserId:(NSNumber *)userId Complete:(void(^)(NSArray<YJDoctorsIfonModel *> *modelList))completeBlock
{
    [[NetWorkManager sharedManager] loadAttentionDoctorListWithUserID:userId pageSize:15 page:1 completeBlock:^(NSArray<YJDoctorsIfonModel *> *modelList, NSError *error) {
        
        completeBlock(modelList);
        
    } errorBlock:^(NSString *error) {
        
        NSLog(@"获取数据错误");
        NSLog(@"%@",error);
        
    }];
    
}




@end
